package aop.log.original;

import java.util.logging.Logger;

public class Logging {
	
	Logger logger = Logger.getLogger(this.getClass().getName());
	public void doLogging() {
		beforeLogin();
		
		login();
		
		afterLogin();
	}
	//Out put log information
	public void logging(String msg) {
		logger.info(msg);
	}
	

	private void login() {
		logging("!-----user login-----!");
		
	}
	private void beforeLogin() {
		logging("Log information before the user login opreation is executed");
		
	}
	private void afterLogin() {
		logging("Log information after the user login operation has been performed");
	}
}
